<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在线分析</title>
    <link rel="stylesheet" href="{% static 'bootstrap5/bootstrap.min.css' %}">
    <script src="{% static 'bootstrap5/popper.min.js' %}"></script>
    <script src="{% static 'bootstrap5/bootstrap.min.js' %}"></script>
</head>
<body>
<header>
    <div class="px-3 py-2 text-bg-dark">
        <div class="container">
            <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
                <a href="/" class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none">
                    <svg class="bi me-2" width="40" height="32" role="img" aria-label="Bootstrap"><use href="#bootstrap"></use></svg>
                </a>

                <ul class="nav col-12 col-lg-auto my-2 justify-content-center my-md-0 text-small">
                    <li>
                        <a href="/index" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#speedometer2"></use></svg>
                            主页
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#home"></use></svg>
                            检测记录
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#table"></use></svg>
                            智能助手
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="black"></use></svg>
                            黑白名单
                        </a>
                    </li>
                    <li>
                        <a href="#" class="nav-link text-white">
                            <svg class="bi d-block mx-auto mb-1" width="24" height="24"><use  href="#people-circle"></use></svg>
                            模型信息
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="px-3 py-2 border-bottom mb-3">
        <div class="container d-flex flex-wrap justify-content-center">
            <form class="col-12 col-lg-auto mb-2 mb-lg-0 me-lg-auto" role="search">
                <input type="search" class="form-control" placeholder="Search..." aria-label="Search">
            </form>

            <div class="text-end">
                {#                <button type="button" class="btn btn-light text-dark me-2">Login</button>#}
                {#                <button type="button" class="btn btn-primary">Sign-up</button>#}
            </div>
        </div>
    </div>
</header>
<main>

    <section class="py-5 text-center container">
        <div class="row py-lg-5">
            <div class="col-lg-6 col-md-8 mx-auto">
                <h1 class="fw-light">在线分析模式</h1>
                <p class="lead text-muted">
                    支持批量上传文件、二维码、下载地址<br>云服务器在线分析
                </p>
                <p>
                    <a href="/get_progresslist" class="btn btn-primary my-2">查看进度列表</a>
                    <a href="/get_filelist" class="btn btn-secondary my-2">查看文件列表</a>
                </p>
            </div>
        </div>
    </section>

    <div class="album py-5 bg-light">
        <div class="container">

            <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
                <div class="col">
                    <div class="card shadow-sm">
                        <a href="">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">APK上传接口一</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="{% url 'push2minio_file' %}" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
{#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
{#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="files" name="files1" multiple class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传APK</button>
                                </div>
                                    
                            </form>
                        </div>
                    </div>
                </div>

                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">二维码上传接口一</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="{% url 'push2minio_qrcode' %}" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="files1" name="files2" multiple class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传二维码</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">网址上传接口一</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="{% url 'push2minio_link' %}" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="text" id="url1" name="url1" class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">输入网址</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">APK上传接口二</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="/upload" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="files2" name="files2[]" multiple class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传apk</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">二维码上传接口二</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="/upload" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="files" name="files[]" multiple class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传二维码</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">网址上传接口二</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form action="/upload" method="post" enctype="multipart/form-data">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="text" id="url1" name="url1" class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">输入网址</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <section class="py-5 text-center container">
        <div class="row py-lg-5">
            <div class="col-lg-6 col-md-8 mx-auto">
                <h1 class="fw-light">离线分析模式</h1>
                <p class="lead text-muted">
                    支持上传APK解析<br>支持APK反编译
                </p>
                <p>
{#                    <a href="/get_progresslist" class="btn btn-primary my-2">查看进度列表</a>#}
{#                    <a href="/get_filelist" class="btn btn-secondary my-2">查看文件列表</a>#}
                </p>
            </div>
        </div>
    </section>
    <div class="album py-5 bg-light">
        <div class="container">

            <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
                <div class="col">
                    <div class="card shadow-sm">
                        <a href="">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">APK分析</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form method="post" enctype="multipart/form-data" action="{% url 'upload_file' %}">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="fileToUpload" name="fileToUpload" multiple class="btn btn-sm btn-outline-secondary">
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传APK</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                <div class="col">
                    <div class="card shadow-sm">
                        <a href=" ">
                            <svg class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Thumbnail" preserveAspectRatio="xMidYMid slice" focusable="false">
                                <title>Placeholder</title>
                                <rect width="100%" height="100%" fill="#55595c"></rect>
                                <text x="50%" y="50%" fill="#eceeef" dy=".3em" text-anchor="middle">APK反编译</text>
                            </svg>
                        </a>
                        <div class="card-body">
                            <form method="post" enctype="multipart/form-data" action="{% url 'apk_unzip' %}">
                                {% csrf_token %}
                                <div class="btn-group">
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">View</button>#}
                                    {#                                    <button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>#}
                                    <input type="file" id="files8" name="files8" class="btn btn-sm btn-outline-secondary" >
                                    <button type="submit" class="btn btn-sm btn-outline-secondary">上传APK</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                
            </div>
        </div>
    </div>
</main>
</body>
</html>
